<div id=<%= raw "remark_#{remark.id}" %>>
  <% if !remark.new_record? %><%# no err %>
    <div id=<%= raw "remark_show_#{remark.id}" %>>
      <p>
        <%= remark_floor_text(remark) %>
        <%= remark.author.nil? ? '' : remark.author.name %> 创建于
        <%= remark.created_at.localtime.to_s(:db) %>
      </p>
      <% if !remark.parent_remark.nil? %>
        <div class="frame_quote">
          <%= render partial: 'remarks/sub_remark', locals: { remark: remark.parent_remark } %>
        </div>
      <% end %>
      <hr/>

      <p><%=h raw (remark.get_linked_content) %></p>
      

      <% if (!remark.new_record?) && remark.updated_at - remark.created_at > 1.0 %>
        <p>最后修改：<%= remark.updated_at %></p>
      <% end %>

      <% if ! remark.question_version.nil? %>
        <hr/>
        <%= render remark.question_version %>
      <% end %>

        <p><%= set_reply_tag_a(remark) %><%# raw make_reply_tag_a(remark) 回复</a>%>
          <% if current_user == remark.author %>
             | 
            <a onclick=<%= raw "\"open_edit('remark', '#{remark.id}')\"" %>>编辑</a>
          <% end %>
        </p>
    </div>
  <% end %>
  <%= render partial: 'remarks/form', locals: { remark: remark } %>

</div>
